size

public abstract Size size()

Returns the size of the current browser instance, in logical pixels.

The browser's default size is 1280x800.

Many web pages depend on the browser size and may fail to load or render correctly if the size is empty. The default size corresponds to a typical desktop CSS breakpoint used in modern web UI frameworks.

Use the resize method if you do not embed the browser and the web page you load requires a different size.

Since

7.1

Throws

when the browser is already closed